package com.after.saas.user.service.impl;

import com.after.saas.user.model.DictData;
import com.after.saas.user.mapper.DictDataMapper;
import com.after.saas.user.service.DictDataService;
import com.after.saas.common.model.query.CommonQuery;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 字典数据表 服务实现类
 * </p>
 *
 * @author hjchen
 * @since 2021-07-18
 */
@Service
public class DictDataServiceImpl extends ServiceImpl<DictDataMapper, DictData> implements DictDataService {

    @Override
    public PageInfo<DictData> listPage(CommonQuery query) {
        PageHelper.startPage(query.getPage(), query.getSize());
        List<DictData> dataList = list();
        return new PageInfo<>(dataList);
    }
}
